package com.hyt.it.ogt.download.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hyt.it.ogt.download.entity.Student;
import com.hyt.it.ogt.download.entity.Video;
import java.util.List;
import java.util.Map;

public interface VideoMapper extends BaseMapper<Video> {

    String getExamId(String examCode, String officeId);

    List<Map<String, String>> getCandidateByExamId(String examId);

    List<Video> getVideoList(String examId, String id);

    String getCandidateName(String examId, String id, String nameId);

    String getNameConfig(String examId);

    IPage<Student> getVideoPage(IPage<Student> page, String examId);

    IPage<Student> getVideoPageByAdmissionNumber(IPage<Student> page, String examId, String searchText);

    IPage<Student> getVideoPageByName(IPage<Student> page, String examId, String nameId, String searchText);

    String getOfficeIdByExamId(String examCode);

    int validLocalUserExist(String username, String password);
}
